//package com.eastrobot.doc.poitlconvert.template;
//
//import com.deepoove.poi.render.compute.DefaultELRenderDataCompute;
//import com.deepoove.poi.render.compute.EnvModel;
//import com.deepoove.poi.render.compute.RenderDataCompute;
//import com.deepoove.poi.render.compute.RenderDataComputeFactory;
//import com.greenpineyu.fel.FelEngine;
//import com.greenpineyu.fel.FelEngineImpl;
//
//import java.util.Map;
//
//public class ExpressionComputeFactory implements RenderDataComputeFactory {
//
//    @Override
//    public RenderDataCompute newCompute(EnvModel envModel) {
//        Object root = envModel.getRoot();
//        Map<String, Object> env = envModel.getEnv();
////        RenderDataCompute dataCompute = template.getConfig().getRenderDataComputeFactory().newCompute(EnvModel.of(root, EnvIterator.makeEnv(index++, hasNext)));
////        EnvModel.of(root, EnvIterator.makeEnv(index++, hasNext))
//        System.out.println(env.toString());
//        System.out.println(root);
//
//        FelEngine fel = new FelEngineImpl();
//        Object result = fel.eval("5000*12+7500");
//        System.out.println(result);
//        ExpressionCompute compute = new ExpressionCompute();
//
//        return compute;
//    }
//}
